<?php

namespace app\store\controller\sight;

use app\store\controller\Controller;
use app\store\model\store\Shop as ShopModel;
use app\store\model\store\shop\Clerk as ClerkModel;

class Index extends Controller
{
    public function index($shop_id = 0, $search = '')
    {
        // 店员列表
        $model = new ClerkModel;
        $list = $model->getList(-1, $shop_id, $search);
        // 门店列表
        $shopList = (new ShopModel)->getList();
        //  echo '<pre>';
        //  print_r($shopList);exit;
        return $this->fetch('index', compact('list', 'shopList'));
        
    }

    public function add()
    {
        return $this->fetch();
    }
}